package com.example.system.domain.sysuser.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@Valid
public class SysUserSaveDTO {

    @Schema(description = "用户账号")
    @NotBlank(message = "用户账户不能为空")
    private String userAccount;

    @Schema(description = "用户密码")
    @NotBlank(message = "用户密码不能为空")
    @Size(min = 5, max = 10, message = "密码长度不能少于5位，不能大于10位")
    private String password;

}
